package com.his.his_system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 医生基本信息表
 * @TableName dzm_his_doctor
 */
@TableName(value ="dzm_his_doctor")
@Data
public class DzmHisDoctor implements Serializable {
    /**
     * 用户id
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 用户个人资料真实姓名
     */
    private String trueName;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 头像
     */
    private String picture;

    /**
     * 性别 0,空1:男  2:女
     */
    private Integer sex;

    /**
     * 学历 1：专科  2：本科  3：研究生  4：博士  5：博士后
     */
    private Integer background;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 邮箱
     */
    private String mailbox;

    /**
     * 擅长
     */
    private String strong;

    /**
     * 荣誉
     */
    private String honor;

    /**
     * 简介
     */
    private String introduction;

    /**
     * 注册时间
     */
    private Long createTime;

    /**
     * 修改时间
     */
    private Long updateTime;

    /**
     * 用户表userid
     */
    private Integer uid;

    /**
     * 咨询价格
     */
    private BigDecimal askPrice;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisDoctor other = (DzmHisDoctor) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTrueName() == null ? other.getTrueName() == null : this.getTrueName().equals(other.getTrueName()))
            && (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()))
            && (this.getPicture() == null ? other.getPicture() == null : this.getPicture().equals(other.getPicture()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getBackground() == null ? other.getBackground() == null : this.getBackground().equals(other.getBackground()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getMailbox() == null ? other.getMailbox() == null : this.getMailbox().equals(other.getMailbox()))
            && (this.getStrong() == null ? other.getStrong() == null : this.getStrong().equals(other.getStrong()))
            && (this.getHonor() == null ? other.getHonor() == null : this.getHonor().equals(other.getHonor()))
            && (this.getIntroduction() == null ? other.getIntroduction() == null : this.getIntroduction().equals(other.getIntroduction()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getAskPrice() == null ? other.getAskPrice() == null : this.getAskPrice().equals(other.getAskPrice()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTrueName() == null) ? 0 : getTrueName().hashCode());
        result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
        result = prime * result + ((getPicture() == null) ? 0 : getPicture().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getBackground() == null) ? 0 : getBackground().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getMailbox() == null) ? 0 : getMailbox().hashCode());
        result = prime * result + ((getStrong() == null) ? 0 : getStrong().hashCode());
        result = prime * result + ((getHonor() == null) ? 0 : getHonor().hashCode());
        result = prime * result + ((getIntroduction() == null) ? 0 : getIntroduction().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getAskPrice() == null) ? 0 : getAskPrice().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", trueName=").append(trueName);
        sb.append(", age=").append(age);
        sb.append(", picture=").append(picture);
        sb.append(", sex=").append(sex);
        sb.append(", background=").append(background);
        sb.append(", phone=").append(phone);
        sb.append(", mailbox=").append(mailbox);
        sb.append(", strong=").append(strong);
        sb.append(", honor=").append(honor);
        sb.append(", introduction=").append(introduction);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", uid=").append(uid);
        sb.append(", askPrice=").append(askPrice);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
